package com.hghivln.service;

import com.hghivln.pojo.dto.OrderBackfeeDto;
import com.hghivln.pojo.dto.OrderBackfeeFormDto;
import com.hghivln.pojo.vo.AjaxResult;

public interface OrderBackfeeService {

    /**
     * 保存退费订单和详情
     * @param orderBackfeeFormDto
     */
    void saveOrderAndItems(OrderBackfeeFormDto orderBackfeeFormDto);


    /**
     *  退费成功
     * @param backId 退费ID
     * @param tradeNo 支付ID
     * @param backType 退费类型
     */
    void backSuccess(String backId, String tradeNo, String backType);

    /**
     * 分页查询所有退费订单
     * @param orderBackfeeDto
     * @return
     */
    AjaxResult queryAllOrderBackfeeForPage(OrderBackfeeDto orderBackfeeDto);

    /**
     * 根据退费ID查询退费订单详情
     * @param backId 退费ID
     * @return
     */
    AjaxResult queryOrderBackfeeItemByBackId(String backId);
}
